<% @user = User.find(session[:user_id]) %>
<% if (@user.canAddTagsToOthersResource or @user.isMyResource(@resource)) then %>
	<%= link_to_remote 'Add Tag', 
			:url => {:action => "addTagToProfile2" , :controller => "tag_events" , :id => @resource.id}, 	
			:update => 'tagEdit' %>
<% end %>